<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="jquery-3.2.1.min.js"></script>
</head>

<body>
    <script>
        $.ajax({
            url: '/getSmsCode',
            type: "POST",
            cache: false,
            dataType: "JSON",
            data: {
                "mobile": '18500000005',
            },
            success: function (res) {
                console.log(res);
            },
            error: function (res) {
                console.log(res);
            }
        });
    </script>
</body>

</html>